home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / thrust-s.53 / thrust-s / thrust / INSTALL < prev    next >
Text File  |  1995-11-05  |  2KB  |  47 lines

  1.  
  2. If you have the binary distribution, skip to 3.
  3.  
  4. 1. What you need to build and install the program
  5.  
  6.  - You will need a make that can handle text transforming functions,
  7.    e.g the GNU `make' utility.
  8.  - You will also need svgalib 1.2.8 (or later) to compile the sources. To run
  9.    a binary there is no need for a bleeding edge version of svgalib. You can
  10.    get svgalib by ftp from sunsite.unc.edu in the directory
  11.    /pub/Linux/libs/graphics. As usual, you can just as easily get it from one
  12.    of numerous mirrors. Actually you can use older versions of svgalib by
  13.    uncommenting a small fix in the beginning of `./src/thrust.h' that defines
  14.    the scancode of the letter p.
  15.  - Root permissions so that svgalib can open the graphics display.
  16.  
  17. 2. Build the program
  18.  
  19.  - In the directory that this file is in, type `make'. This will build the
  20.    program `thrust'.
  21.  - If you are not satisfied with the keys, take a look at the function
  22.    whatkeys() in the file `src/thrust.c'. Be sure to use svgalib 1.2.8 as
  23.    this version of svgalib defines more scancodes than previous versions.
  24.  - At the top of the file `src/thrust.h' the speed of the game can be
  25.    changed. You can fiddle with this setting if you are not satisfied
  26.    with the feel of the steering.
  27.  
  28. 3. Install the program
  29.  
  30.  - Type `su' and enter root's password.
  31.  - Then as root, type `make install'. This will copy the program `thrust'
  32.    to `/usr/local/games' and it will also set the setuid flag as is required
  33.    by all svgalib programs.
  34.  
  35. Security concerns
  36.  
  37.  - All programs that use svgalib must be started as root. Either root starts
  38.    the program, or the program is suid root so that everybody can run it as
  39.    if they were root. A normal svgalib application give up its root priviliges
  40.    right after the graphics have been initilized. Root priviliges are normally
  41.    given up within the call to vga_init().
  42.    However, `thrust' needs root priviliges after this in order to write a
  43.    highscore file in `/var/games/thrust.highscore'. If you have security
  44.    concerns that are stronger than your need for a highscore file, then take
  45.    a look at the comment in the beginning of the main() function at the bottom
  46.    of the file `src/thrust.c'.
  47.